/********************** Exercise5 **********************************
 * Create a class called Dog containing two Strings: name and says. In
 * main( ), create two dog objects with names “spot”
 * (who says, “Ruff!”) and “scruffy” (who says, “Wurf!”).
 * Then display their names and what they say.
 *******************************************************************/

package operators;
import static utils.Print.*;

class Dog{
    public String name;
    public String says;

    public Dog() {
    }

    public Dog(String name, String says) {
        this.name = name;
        this.says = says;
    }

}

/**
 *
 * @author Vlad
 */
public class Exercise5 {
    public static void main(String [] args){
        Dog d1 = new Dog("spot", "Ruff!");
        Dog d2 = new Dog("scruffy", "Wurf!");
        print("dog1: name = " + d1.name + " says = " + d1.says);
        print("dog2: name = " + d2.name + " says = " + d2.says);
    }
}
